package com.prd.service;

import com.alibaba.fastjson.JSONArray;
import com.baomidou.mybatisplus.extension.service.IService;
import com.prd.dto.BudgetApproveDto;
import com.prd.dto.DeviationDto;
import com.prd.model.EntMeetSummaryApprove;
import com.prd.model.EntMeetSummaryBudget;
import com.prd.vo.BudgetVo;

public interface EntMeetSummaryBudgetService extends IService<EntMeetSummaryBudget> {
    int insertInfo(EntMeetSummaryBudget entMeetSummaryMotion);

    int updateInfo(EntMeetSummaryBudget entMeetSummaryMotion);

    /**
     * 添加预算审批人信息
     *
     * @param budgetApproveDto
     * @return
     */
    int addBudgetApprove(BudgetApproveDto budgetApproveDto);

    /**
     * 添加预算误差报告信息
     *
     * @param deviationDto
     * @return
     */
    int addDeviation(DeviationDto deviationDto);

    /**
     * 查询会议决议预算人员权限
     *
     * @param summaryId
     * @return
     */
    JSONArray jurisdictionBudget(Long summaryId);

    /**
     * 查询会议预算信息
     *
     * @param summaryId
     * @return
     */
    BudgetVo listBudget(Long summaryId);


    /**
     * 添加预决算意见/通过/不通过信息
     *
     * @param entMeetSummaryApprove
     * @return
     */
    int addApprove(EntMeetSummaryApprove entMeetSummaryApprove);
}
